package com.example.ioc.service.Impl;

import com.example.ioc.anotation.JoinPoint;
import com.example.ioc.dao.UserDao;
import com.example.ioc.service.UserService;

public class UserServiceImpl implements UserService {
    private UserDao userDao;

    @Override
    public int calculate(int num) {
        System.out.println("service:"+num);
        return userDao.calculate(num);
    }

    @Override
    public void test() {
        System.out.println("test方案");
    }

    @Override
    public void setDao(UserDao userDao) {
        this.userDao=userDao;
    }
}
